package com.softeem.mpdemo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;

/**
 * 数据传输对象（DTO）:在后端接口和前端之间数据传输的实体，即一个业务对象
 */
@Schema(description = "歌曲详情信息，包含歌曲，歌手，专辑数据")
@Data
public class MusicDetails {

    //歌曲表数据
    @Schema(description = "歌曲id")
    private Integer id;
    @Schema(description = "歌曲名")
    private String name;
    @Schema(description = "歌曲播放地址")
    private String url;
    @Schema(description = "歌曲风格")
    private String style;
    @Schema(description = "歌曲大小(字节)")
    private Integer size;
    @Schema(description = "歌曲持续时长(毫秒)")
    private Integer duration;
    //专辑表数据
    @Schema(description = "专辑名")
    private String ablumName;
    @Schema(description = "专辑图片")
    private String ablumImg;
    @Schema(description = "发行时间")
    private LocalDate releasetime;
    //歌手表数据
    @Schema(description = "歌手")
    private String singerName;

}
